from django.urls import path, re_path

from . import views

app_name = 'front'
urlpatterns = [



    path('', views.index, name='index'),
    re_path('p/(?P<pid>[0-9a-zA-Z]{22})/', views.detail, name='detail'),
    path('types/', views.types, name='types'),
    path('topics/', views.topics, name='topics'),
    path('s/', views.search, name='search'),

    path('user/login/', views.LoginView.as_view(), name='login'),
    path('user/logout/', views.logout_view, name='logout'),
    path('user/register/', views.RegisterView.as_view(), name='register'),

    path('user/publish/', views.publish, name='publish'),
    path('user/cms/', views.front_cms, name='front_cms'),


]
